<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘分类</title>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
    <link rel="stylesheet" href="./lib/fa/css/font-awesome.min.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/category.css">
</head>

<body>
    <div class="lt_container">
        <!-------------- header -------------->
        <div class="header">
            <a href="javascript:history.go(-1);" class="icon_left">
                <i class="mui-icon mui-icon-back"></i>
            </a>
            <div class="title">
                <h4>乐淘分类</h4>
            </div>
            <a href="search.html" class="icon_right">
                <i class="fa fa-search"></i>
            </a>
        </div>
        <!-------------- main -------------->
        <div class="main">
            <div class="category_list">
                <div class="mui-scroll-wrapper">
                    <div class="mui-scroll">
                        <ul>
                            <!-- ajax拉取 -->
                        </ul>
                    </div>
                </div>
            </div>
            <div class="brand_list">
                <div class="mui-scroll-wrapper">
                    <div class="mui-scroll">
                        <ul class="mui-clearfix">
                            <!-- ajax拉取 -->
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <!-------------- footer -------------->
        <div class="footer">
            <ul>
                <li>
                    <a href="index.html">
                        <span class="fa fa-home"></span>
                        <p>首页</p>
                    </a>
                </li>
                <li class="active">
                    <a href="category.html">
                        <span class="fa fa-bars"></span>
                        <p>分类</p>
                    </a>
                </li>
                <li>
                    <a href="cart.html">
                        <span class="fa fa-shopping-cart"></span>
                        <p>购物车</p>
                    </a>
                </li>
                <li>
                    <a href="user.html">
                        <span class="fa fa-user"></span>
                        <p>会员中心</p>
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <!-- category_list模板 -->
    <script type="text/template" id="tmp1">
        {{ each rows v i }}
        <li class="{{ i === 0 ? 'active' : '' }}" data-id="{{ v.id }}">
            <a href="#">{{ v.categoryName }}</a>
        </li>
        {{ /each }}
    </script>
    <!-- brand_list模板 -->
    <script type="text/html" id="tmp2">
        {{ if rows.length === 0 }}
        <p>该分类下没有更多的品牌信息</p>
        {{ /if }}
        {{ each rows v i }}
        <li>
            <a href="#">
                <img src="{{ v.brandLogo }}" alt="">
                <p>{{ v.brandName }}</p>
            </a>
        </li>
        {{ /each }}
    </script>
    <script src="./lib/zepto/zepto.min.js"></script>
    <script src="./lib/mui/js/mui.js"></script>
    <script src="./lib/artTemplate/template-web.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/category.js"></script>
</body>

</html>